<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>所有该留言附件</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="css/skin.css" rel="stylesheet" type="text/css" />
<link href="css/table.css" rel="stylesheet" type="text/css" />

<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
}
tr {
	background-color: expression(( this.sectionRowIndex %   2 ==   0)?"#EFF7FF":"#F0FBEB"
		)
}

td {
	background-color: expression(( this.cellIndex % 2 =   0)?"":((this.parentElement.sectionRowIndex%2==0
		)?"#EFF7FF":"#F0FBEB" ) )
}
</style>

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<table width="95%" id="mytab" border="1" class="t1" align="center">
		
		<tr>
			<td colspan="5" align="right"><a
				href="ClientManagement/AddAttachment.jsp"><B>上传新的附件</B></a></td>
		</tr>
		<tr>
			<td colspan="5"><s:actionerror cssStyle="color:red" />
			</td>
		</tr>
		<tr>
			<td width="15%">附件编号</td>
			<td width="30%">附件名称</td>
			<td width="20%">附件上传时间</td>
			<td width="30%">操作</td>
		</tr>
		<s:iterator value="attachmentlist" id="attachment">
			<tr>
				<td><s:property value="#attachment.attid" /> <s:hidden
						name="attachment.noteid" value="#attachment.noteid" />
				</td>
				<td><s:property value="#attachment.title" />
				</td>
				<td><s:property value="#attachment.date" />
				</td>
				<td><a
					href="<s:url action="downAction">
			<s:param name="attachment.title" value="#attachment.title"></s:param>
			</s:url>">下载
				</a>&nbsp;&nbsp; <a
					href="<s:url action="deleteattachment1">
			<s:param name="attachment.attid" value="#attachment.attid"></s:param>
			<s:param name="attachment.noteid" value="#attachment.noteid"></s:param>
			</s:url>"
					onclick="return confirm('确定删除？')?true:false;">删除 </a></td>
			</tr>
		</s:iterator>
		
		<tr>
			<td colspan="5" align="right"><a href="showallnote1">返回</a>
			</td>
		</tr>

	</table>
</body>
</html>
